//
//  LWAccountGoodCell.m
//  LWShopItem
//
//  Created by apple on 17/5/7.
//  Copyright © 2017年 LWShop.com. All rights reserved.
//

#import "LWAccountGoodCell.h"
#import "LWLabel.h"
#import <UIImageView+WebCache.h>
@interface LWAccountGoodCell()
@property (weak, nonatomic) IBOutlet UIImageView *pictureImage;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *shopPrice;
@property (weak, nonatomic) IBOutlet LWLabel *marketPrice;
@property (weak, nonatomic) IBOutlet UILabel *countLabel;

@end


@implementation LWAccountGoodCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(LWDetailModel *)model {
    _model = model;
    _shopPrice.text = [NSString stringWithFormat:@"¥%@",_model.shop_price];
    _marketPrice.text = [NSString stringWithFormat:@"¥%@",_model.market_price];
    [_pictureImage sd_setImageWithURL:[NSURL URLWithString:_model.original_img]];
    _countLabel.text = [NSString stringWithFormat:@"x%lu",_model.orderCount];
    _nameLabel.text = _model.goods_name;
}
@end
